//
//  RHDeviceListViewController.h
//  RuiHeAppApp
//
//  Created by Jun on 2023/7/25.
//

#import "RHBaseViewController.h"
#import "JXCategoryListContainerView.h"
#import "RHPlantModel.h"
#import "RHDeviceModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface RHDeviceListViewController : RHBaseViewController<JXCategoryListContentViewDelegate>

//数据源
@property (nonatomic, strong) NSMutableArray *deviceListArr;

@property (nonatomic ,strong) UITableView *tableView;

@property (nonatomic, assign) NSInteger userId;//获取用户下的设备列表

@property (nonatomic, strong) RHPlantModel *plantModel;//如果有,就是获取电站下的设备

@property (nonatomic, assign) BOOL showAddBtn;//电站详情页面过来添加分发按钮
//用收回下级的设备
@property (nonatomic, assign)BOOL canDelete;

//0全部  1在线  2离线  3故障
@property (nonatomic, assign) NSInteger index;

@property (nonatomic, assign) DevListType listType;
//刷新设备数量
@property (nonatomic,copy)void(^refreshBlock)(void);
//意见反馈选择设备
@property (nonatomic,copy)void(^selectBlock)(NSString* deviceID);
//巡检报表选择设备
@property (nonatomic,copy)void(^devReportSelectBlock)(RHDeviceModel* device);

@property (nonatomic ,copy) NSString *titleStr;
//搜索
-(void)searchDeviceWithKeyCode:(NSString*)keyCode;

-(void)updateDeviceList;
@end

NS_ASSUME_NONNULL_END
